package com.kgc.dto;

import lombok.Data;

/**
 * @Author: luo
 * @date: 2024/4/7 9:28
 * @Description:
 * @Version: 1.0
 */
@Data
public class Result {

    // 返回的数据
    private Object data;
    // 返回的状态码
    private Integer code;
    // 返回的消息
    private String msg;

    private Integer total;

    public Result() {
    }

    public Result(Object data) {
        this.data = data;
    }

    public Result(Object data, Integer code) {
        this.data = data;
        this.code = code;
    }


    public Result(Object data, Integer code, String msg) {
        this.data = data;
        this.code = code;
        this.msg = msg;
    }

    public Result(Object data, Integer code, String msg, Integer total) {
        this.data = data;
        this.code = code;
        this.msg = msg;
        this.total = total;
    }
}
